.class public Lcom/waiqin365/lightapp/product/b/a/o;
.super Lcom/waiqin365/lightapp/product/b/d;


# instance fields
.field public b:Ljava/lang/String;

.field public c:Ljava/lang/String;

.field public d:I

.field public e:Lcom/waiqin365/lightapp/product/d/h;


# direct methods
.method public constructor <init>(Lcom/waiqin365/lightapp/product/d/h;)V
    .locals 1

    const/16 v0, 0x65

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/product/b/d;-><init>(I)V

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightapp/product/b/a/o;->b:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightapp/product/b/a/o;->c:Ljava/lang/String;

    iput-object p1, p0, Lcom/waiqin365/lightapp/product/b/a/o;->e:Lcom/waiqin365/lightapp/product/d/h;

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/b/a/o;->e:Lcom/waiqin365/lightapp/product/d/h;

    if-nez v0, :cond_0

    new-instance v0, Lcom/waiqin365/lightapp/product/d/h;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/product/d/h;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/product/b/a/o;->e:Lcom/waiqin365/lightapp/product/d/h;

    :cond_0
    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;)Z
    .locals 9

    const/4 v0, 0x1

    const/4 v1, 0x0

    :try_start_0
    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string/jumbo v2, "code"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_2

    const-string/jumbo v2, "code"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lcom/waiqin365/lightapp/product/b/a/o;->b:Ljava/lang/String;

    const-string/jumbo v2, "1"

    iget-object v4, p0, Lcom/waiqin365/lightapp/product/b/a/o;->b:Ljava/lang/String;

    invoke-virtual {v2, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_4

    const-string/jumbo v2, "num"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v2

    if-eqz v2, :cond_0

    :try_start_1
    const-string/jumbo v2, "num"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v2

    iput v2, p0, Lcom/waiqin365/lightapp/product/b/a/o;->d:I
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    :cond_0
    :goto_0
    :try_start_2
    const-string/jumbo v2, "data"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_3

    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    const-string/jumbo v2, "data"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v5

    move v3, v1

    :goto_1
    if-eqz v5, :cond_9

    invoke-virtual {v5}, Lorg/json/JSONArray;->length()I

    move-result v2

    if-ge v3, v2, :cond_9

    invoke-virtual {v5, v3}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v6

    if-eqz v6, :cond_1

    new-instance v7, Lcom/waiqin365/lightapp/product/d/h;

    invoke-direct {v7}, Lcom/waiqin365/lightapp/product/d/h;-><init>()V

    const-string/jumbo v2, "id"

    invoke-virtual {v6, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_5

    const-string/jumbo v2, "id"

    invoke-virtual {v6, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_2
    iput-object v2, v7, Lcom/waiqin365/lightapp/product/d/h;->a:Ljava/lang/String;

    const-string/jumbo v2, "parentId"

    invoke-virtual {v6, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_6

    const-string/jumbo v2, "parentId"

    invoke-virtual {v6, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_3
    iput-object v2, v7, Lcom/waiqin365/lightapp/product/d/h;->b:Ljava/lang/String;

    const-string/jumbo v2, "name"

    invoke-virtual {v6, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_7

    const-string/jumbo v2, "name"

    invoke-virtual {v6, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_4
    iput-object v2, v7, Lcom/waiqin365/lightapp/product/d/h;->c:Ljava/lang/String;

    const-string/jumbo v2, "isLeaf"

    invoke-virtual {v6, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_8

    const-string/jumbo v2, "true"

    const-string/jumbo v8, "isLeaf"

    invoke-virtual {v6, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v2, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_8

    move v2, v0

    :goto_5
    iput-boolean v2, v7, Lcom/waiqin365/lightapp/product/d/h;->d:Z

    invoke-virtual {v4, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_1
    add-int/lit8 v2, v3, 0x1

    move v3, v2

    goto :goto_1

    :cond_2
    move v0, v1

    :cond_3
    :goto_6
    return v0

    :cond_4
    const-string/jumbo v2, "message"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_3

    const-string/jumbo v2, "message"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lcom/waiqin365/lightapp/product/b/a/o;->c:Ljava/lang/String;

    goto :goto_6

    :catch_0
    move-exception v0

    move v0, v1

    goto :goto_6

    :catch_1
    move-exception v2

    invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V

    const/4 v2, 0x0

    iput v2, p0, Lcom/waiqin365/lightapp/product/b/a/o;->d:I

    goto/16 :goto_0

    :cond_5
    const-string/jumbo v2, ""

    goto :goto_2

    :cond_6
    const-string/jumbo v2, ""

    goto :goto_3

    :cond_7
    const-string/jumbo v2, ""

    goto :goto_4

    :cond_8
    move v2, v1

    goto :goto_5

    :cond_9
    iget-object v2, p0, Lcom/waiqin365/lightapp/product/b/a/o;->e:Lcom/waiqin365/lightapp/product/d/h;

    invoke-virtual {v2, v4}, Lcom/waiqin365/lightapp/product/d/h;->a(Ljava/util/List;)V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    goto :goto_6
.end method
